Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Test refactored #348

Closed
wants to merge 2 commits into from

2 participants

@andersonleite

Simple test refactoring. Before block not necessarily.
Thanks justinko for helping.

@andersonleite

Remove unncessary before hook from example.

@dchelimsky dchelimsky closed this
@kaiwren kaiwren referenced this pull request from a commit in c42engineering/rspec-rails
@andersonleite andersonleite Remove unncessary before hook from example.
- Closes #348
ae1c9fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 7 deletions.
  1. +1 −0  .gitignore
  2. +2 −7 spec/autotest/rails_rspec2_spec.rb
View
1  .gitignore
@@ -7,3 +7,4 @@ vendor
.bundle
Gemfile.lock
Gemfile
+.rvmrc
View
9 spec/autotest/rails_rspec2_spec.rb
@@ -26,16 +26,11 @@
end
describe 'mappings' do
- before do
- rails_rspec2_autotest.find_order = %w(
- spec/models/user_spec.rb
- spec/support/blueprints.rb
- )
- end
-
it 'runs model specs when support files change' do
+ rails_rspec2_autotest.find_order = %w(spec/models/user_spec.rb spec/support/blueprints.rb)
rails_rspec2_autotest.test_files_for('spec/support/blueprints.rb').should(
include('spec/models/user_spec.rb'))
end
end
+
end
Something went wrong with that request. Please try again.