features/minitest_kata.feature in shuhari-0.1.0 vs features/minitest_kata.feature in shuhari-0.1.1
- old
+ new
@@ -30,14 +30,14 @@
require 'minitest/autorun'
require 'minitest/pride'
"""
And the file "fizz_buzz/Guardfile" should contain:
"""
- guard 'minitest' do
- watch(%r|^test/test_(.*)\.rb|)
- watch(%r|^lib/(.*)\.rb|) { |m| "test/test_#{m[1]}.rb" }
- watch(%r|^test/test_helper\.rb|) { "test" }
+ guard :minitest do
+ watch(%r{^test/(.*)\/?test_(.*)\.rb})
+ watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
+ watch(%r{^test/test_helper\.rb}) { 'test' }
end
"""
And the file "fizz_buzz/shuhari.yml" should contain:
"""
project_name: FizzBuzz
@@ -47,43 +47,55 @@
@osx
Scenario: OS X
When I run `shuhari new FizzBuzz --minitest`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'minitest'
- gem 'guard-minitest'
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
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 --minitest`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'minitest'
- gem 'guard-minitest'
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
gem 'coolline', :require => false
gem 'libnotify'
+ # gem 'ruby_gntp'
gem 'rb-inotify'
end
"""
@windows
Scenario: Windows
When I run `shuhari new FizzBuzz --minitest`
Then the file "fizz_buzz/Gemfile" should contain:
"""
+ source 'https://rubygems.org'
+
group :development do
+ gem 'shuhari'
gem 'minitest'
- gem 'guard-minitest'
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
gem 'rb-notifu'
gem 'win32console'
+ # gem 'ruby_gntp'
gem 'wdm'
end
"""