-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes --webrat #850
Removes --webrat #850
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,25 +20,13 @@ | |
end | ||
|
||
describe 'are generated' do | ||
describe 'without webrat matchers by default' do | ||
before do | ||
run_generator %w(posts) | ||
end | ||
subject { file('spec/requests/posts_spec.rb') } | ||
it { should exist } | ||
it { should contain(/require 'spec_helper'/) } | ||
it { should contain(/describe "GET \/posts"/) } | ||
it { should contain(/get posts_index_path/) } | ||
end | ||
describe 'with webrat matchers' do | ||
before do | ||
run_generator %w(posts --webrat) | ||
end | ||
subject { file('spec/requests/posts_spec.rb') } | ||
it { should exist } | ||
it { should contain(/require 'spec_helper'/) } | ||
it { should contain(/describe "GET \/posts"/) } | ||
it { should contain(/visit posts_index_path/) } | ||
before do | ||
run_generator %w(posts) | ||
end | ||
subject { file('spec/requests/posts_spec.rb') } | ||
it { should exist } | ||
it { should contain(/require 'spec_helper'/) } | ||
it { should contain(/describe "GET \/posts"/) } | ||
it { should contain(/get posts_index_path/) } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth updating the style of these specs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be worth leveraging rspec/rspec-core#1180 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Definitely, I'll file a separate issue. |
||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not reflect one of the 3.x builds? Given that this is a 3.x build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. Will update this in master, thanks.