Skip to content

Commit

Permalink
Add missing spec_helper require to generator spec
Browse files Browse the repository at this point in the history
  • Loading branch information
atambo committed Jan 27, 2012
1 parent 6e88468 commit 023afd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/rspec-apotomo/widget_spec_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "spec_helper"
require "generators/rspec/widget_generator"

describe Rspec::Generators::WidgetGenerator do
Expand All @@ -20,13 +21,13 @@
test.assert_file "spec/widgets/tweet_widget_spec.rb", /root << widget\('twitter\/tweet'\)/
test.assert_file "spec/widgets/tweet_widget_spec.rb", /end/
end

it 'creates display state' do
test.assert_file "spec/widgets/tweet_widget_spec.rb", /it "should render :display" do/
test.assert_file "spec/widgets/tweet_widget_spec.rb", /render_widget\('twitter\/tweet', :display\).should have_selector\("h1"\)/
test.assert_file "spec/widgets/tweet_widget_spec.rb", /end/
end

it 'creates form state' do
test.assert_file "spec/widgets/tweet_widget_spec.rb", /it "should render :form" do/
test.assert_file "spec/widgets/tweet_widget_spec.rb", /render_widget\('twitter\/tweet', :form\).should have_selector\("h1"\)/
Expand Down

0 comments on commit 023afd0

Please sign in to comment.