spec/generators/rspec/scaffold/scaffold_generator_spec.rb in rspec-rails-2.8.0.rc2 vs spec/generators/rspec/scaffold/scaffold_generator_spec.rb in rspec-rails-2.8.0
- old
+ new
@@ -33,34 +33,34 @@
before { run_generator %w(posts) }
describe 'edit' do
subject { file("spec/views/posts/edit.html.erb_spec.rb") }
it { should exist }
it { should contain /require 'spec_helper'/ }
- it { should contain /describe "(.*)\/edit.html.erb"/ }
+ it { should contain /describe "(.*)\/edit"/ }
it { should contain /it "renders the edit (.*) form"/ }
end
describe 'index' do
subject { file("spec/views/posts/index.html.erb_spec.rb") }
it { should exist }
it { should contain /require 'spec_helper'/ }
- it { should contain /describe "(.*)\/index.html.erb"/ }
+ it { should contain /describe "(.*)\/index"/ }
it { should contain /it "renders a list of (.*)"/ }
end
describe 'new' do
subject { file("spec/views/posts/new.html.erb_spec.rb") }
it { should exist }
it { should contain /require 'spec_helper'/ }
- it { should contain /describe "(.*)\/new.html.erb"/ }
+ it { should contain /describe "(.*)\/new"/ }
it { should contain /it "renders new (.*) form"/ }
end
describe 'show' do
subject { file("spec/views/posts/show.html.erb_spec.rb") }
it { should exist }
it { should contain /require 'spec_helper'/ }
- it { should contain /describe "(.*)\/show.html.erb"/ }
+ it { should contain /describe "(.*)\/show"/ }
it { should contain /it "renders attributes in <p>"/ }
end
end
describe 'with --no-view-specs' do