diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..cc372c2 Binary files /dev/null and b/.DS_Store differ diff --git a/.sass-cache/47c80d8c78f13f84ef53593d09516101f14d7a09/screen.sassc b/.sass-cache/47c80d8c78f13f84ef53593d09516101f14d7a09/screen.sassc new file mode 100644 index 0000000..a6db37d Binary files /dev/null and b/.sass-cache/47c80d8c78f13f84ef53593d09516101f14d7a09/screen.sassc differ diff --git a/features/a.feature b/features/a.feature deleted file mode 100644 index e41398a..0000000 --- a/features/a.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Feature A - This is example feature a - - Scenario: one - Then this scenario should take 1 second to run diff --git a/features/b.feature b/features/b.feature deleted file mode 100644 index 172d9ca..0000000 --- a/features/b.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Feature B - This is example feature b - - Scenario: one - Then this scenario should take 2 seconds to run diff --git a/features/c.feature b/features/c.feature deleted file mode 100644 index 3ff465d..0000000 --- a/features/c.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Feature C - This is example feature c - - Scenario: one - Then this scenario should take 3 seconds to run diff --git a/features/d.feature b/features/d.feature deleted file mode 100644 index 3977092..0000000 --- a/features/d.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Feature D - This is example feature d - - Scenario: one - Then this scenario should take 4 seconds to run diff --git a/features/sleep_for_1_second.feature b/features/sleep_for_1_second.feature new file mode 100644 index 0000000..79328dd --- /dev/null +++ b/features/sleep_for_1_second.feature @@ -0,0 +1,5 @@ +Feature: Sleep for 1 second + This feature should take about 1 second to run + + Scenario: Sleep for 1 second + Then this scenario took 1 second to run diff --git a/features/sleep_for_2_seconds.feature b/features/sleep_for_2_seconds.feature new file mode 100644 index 0000000..9cd05a6 --- /dev/null +++ b/features/sleep_for_2_seconds.feature @@ -0,0 +1,5 @@ +Feature: Sleep for 2 seconds + This feature should take about 2 seconds to run + + Scenario: Sleep for 2 seconds + Then this scenario took 2 seconds to run diff --git a/features/sleep_for_4_seconds.feature b/features/sleep_for_4_seconds.feature new file mode 100644 index 0000000..921f1c8 --- /dev/null +++ b/features/sleep_for_4_seconds.feature @@ -0,0 +1,5 @@ +Feature: Sleep for 4 seconds + This feature should take about 4 seconds to run + + Scenario: Sleep for 4 seconds + Then this scenario took 4 seconds to run diff --git a/features/sleep_for_8_seconds.feature b/features/sleep_for_8_seconds.feature new file mode 100644 index 0000000..13c6a69 --- /dev/null +++ b/features/sleep_for_8_seconds.feature @@ -0,0 +1,5 @@ +Feature: Sleep for 8 seconds + This feature should take about 8 seconds to run + + Scenario: Sleep for 8 seconds + Then this scenario took 8 seconds to run diff --git a/features/step_definitions/sleep_steps.rb b/features/step_definitions/sleep_steps.rb index 96a792d..c1a016e 100644 --- a/features/step_definitions/sleep_steps.rb +++ b/features/step_definitions/sleep_steps.rb @@ -1,3 +1,3 @@ -Then /^this scenario should take (\d+) seconds? to run$/ do |n| +Then /^this scenario took (\d+) seconds? to run$/ do |n| ExampleHobsonProject.sleep_and_log_for n end diff --git a/spec/c_spec.rb b/spec/c_spec.rb deleted file mode 100644 index 4e2e488..0000000 --- a/spec/c_spec.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'spec_helper' - -describe 'c' do - - it "should take 3 seconds to run this spec" do - ExampleHobsonProject.sleep_and_log_for 3 - end - -end diff --git a/spec/a_spec.rb b/spec/sleep_for_1_seconds_spec.rb similarity index 54% rename from spec/a_spec.rb rename to spec/sleep_for_1_seconds_spec.rb index 2017fda..68a6cfb 100644 --- a/spec/a_spec.rb +++ b/spec/sleep_for_1_seconds_spec.rb @@ -1,8 +1,8 @@ require 'spec_helper' -describe 'a' do +describe 'sleeping for 1 second' do - it "should take 1 second to run this spec" do + it "should take 1 second" do ExampleHobsonProject.sleep_and_log_for 1 end diff --git a/spec/b_spec.rb b/spec/sleep_for_2_seconds_spec.rb similarity index 53% rename from spec/b_spec.rb rename to spec/sleep_for_2_seconds_spec.rb index d7efecc..489239a 100644 --- a/spec/b_spec.rb +++ b/spec/sleep_for_2_seconds_spec.rb @@ -1,8 +1,8 @@ require 'spec_helper' -describe 'b' do +describe 'sleeping for 2 seconds' do - it "should take 2 seconds to run this spec" do + it "should take 2 seconds" do ExampleHobsonProject.sleep_and_log_for 2 end diff --git a/spec/d_spec.rb b/spec/sleep_for_4_seconds_spec.rb similarity index 53% rename from spec/d_spec.rb rename to spec/sleep_for_4_seconds_spec.rb index 5725b3c..e02bd65 100644 --- a/spec/d_spec.rb +++ b/spec/sleep_for_4_seconds_spec.rb @@ -1,8 +1,8 @@ require 'spec_helper' -describe 'd' do +describe 'sleeping for 4 seconds' do - it "should take 4 seconds to run this spec" do + it "should take 4 seconds" do ExampleHobsonProject.sleep_and_log_for 4 end diff --git a/spec/sleep_for_8_seconds_spec.rb b/spec/sleep_for_8_seconds_spec.rb new file mode 100644 index 0000000..d768ca8 --- /dev/null +++ b/spec/sleep_for_8_seconds_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe 'sleeping for 8 seconds' do + + it "should take 8 seconds" do + ExampleHobsonProject.sleep_and_log_for 8 + end + +end