features/rspec_kata.feature in shuhari-0.1.0 vs features/rspec_kata.feature in shuhari-0.1.1
- old
+ new
@@ -25,20 +25,29 @@
And the file "fizz_buzz/spec/spec_helper.rb" should contain:
"""
require 'fizz_buzz'
require 'rspec'
- # Requires supporting files with custom matchers and macros, etc,
- # in ./support/ and its subdirectories.
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
-
RSpec.configure do |config|
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+
+ # Run specs in random order to surface order dependencies. If you find an
+ # order dependency and want to debug it, you can fix the order by providing
+ # the seed, which is printed after each run.
+ # --seed 1234
+ config.order = 'random'
+
+ # Requires supporting files with custom matchers and macros, etc,
+ # in ./support/ and its subdirectories.
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
end
"""
And the file "fizz_buzz/Guardfile" should contain:
"""
- guard 'rspec', :version => 2 do
+ guard 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec/" }
end
"""
@@ -51,43 +60,55 @@
@osx
Scenario: OS X
When I run `shuhari new FizzBuzz --rspec`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'rspec'
gem 'guard-rspec'
gem 'coolline', :require => false
gem 'growl'
# gem 'growl_notify'
# gem 'ruby_gntp'
+ # gem 'terminal-notifier-guard'
gem 'rb-fsevent'
end
"""
@linux
Scenario: Linux
When I run `shuhari new FizzBuzz --rspec`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'rspec'
gem 'guard-rspec'
gem 'coolline', :require => false
gem 'libnotify'
+ # gem 'ruby_gntp'
gem 'rb-inotify'
end
"""
@windows
Scenario: Windows
When I run `shuhari new FizzBuzz --rspec`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'rspec'
gem 'guard-rspec'
gem 'rb-notifu'
gem 'win32console'
+ # gem 'ruby_gntp'
gem 'wdm'
end
"""