/** @test */ public function it_adds_an_style_action_to_the_elixir_file() { $report = ElixirFile::addStyle('example.styl'); $this->assertEquals($report, 'SUCCESS'); $fileContent = File::get($this->exampleFile); $contentShouldExist = "\n\tmix.stylus('example.styl',\n\t\t\t\tnull,\n\t\t\t\t{\n\t\t\t\t\tuse: [ postStylus('lost'), nib() ]\n\t\t\t\t});"; $this->assertContains($contentShouldExist, $fileContent); }
/** * * Setup Styles. * * @return void */ protected function setUpStyles() { $this->describeMethod('Setup Stylus'); $this->copyStyleStubs(); $report = ElixirFile::addStyle('backend.styl'); $this->reportStep('add publish task for backend.styl in elixir-file', $report); }