Skip to content
Browse files

removed all the explicit slowness and added a minimal example feature…

… and example spec
  • Loading branch information...
1 parent 3dc3571 commit d6165a8f6387f14ec3a6fa2aa9dfac129072679b Jared Grippe and Tim James committed with Apr 9, 2012
View
5 features/a.feature
@@ -1,5 +0,0 @@
-Feature: A
- This feature should take 1 second to run
-
- Scenario: A
- Then this scenario took 1 second to run
View
5 features/b.feature
@@ -1,5 +0,0 @@
-Feature: B
- This feature should take 1 second to run
-
- Scenario: B
- Then this scenario took 1 second to run
View
17 features/blog.feature
@@ -1,17 +0,0 @@
-Feature: Blog
- This feature should take 1 second to run
-
- Scenario: As an admin I should be able to create a post
- Then this scenario took 1 second to run
-
- Scenario: As an admin I should be able to create a post and delete it
- Then this scenario took 1 second to run
-
- Scenario: As an admin I should be able to delete a post
- Then this scenario took 1 second to run
-
- Scenario: As an admin I should be able to view a post
- Then this scenario took 1 second to run
-
- Scenario: As a visitor I should be able to view a post
- Then this scenario took 1 second to run
View
5 features/c.feature
@@ -1,5 +0,0 @@
-Feature: C
- This feature should take 1 second to run
-
- Scenario: C
- Then this scenario took 1 second to run
View
5 features/d.feature
@@ -1,5 +0,0 @@
-Feature: D
- This feature should take 1 second to run
-
- Scenario: D
- Then this scenario took 1 second to run
View
5 features/e.feature
@@ -1,5 +0,0 @@
-Feature: E
- This feature should take 1 second to run
-
- Scenario: E
- Then this scenario took 10 second to run
View
5 features/example.feature
@@ -0,0 +1,5 @@
+Feature: A
+ This should be an example feature
+
+ Scenario: A
+ Then this should be an example scenario
View
3 features/step_definitions/example_steps.rb
@@ -0,0 +1,3 @@
+Then /^this should be an example scenario$/ do
+ true.should be_true
+end
View
3 features/step_definitions/sleep_steps.rb
@@ -1,3 +0,0 @@
-Then /^this scenario took (\d+) seconds? to run$/ do |n|
- ExampleHobsonProject.sleep_and_log_for n
-end
View
1 lib/example_hobson_project.rb
@@ -24,4 +24,3 @@ def sleep_and_log_for n
end
-sleep 5 # simulate a slow app starting
View
9 spec/a_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'
-
-describe 'A' do
-
- it "should take 1 second to test" do
- ExampleHobsonProject.sleep_and_log_for 1
- end
-
-end
View
9 spec/b_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'
-
-describe 'B' do
-
- it "should take 1 second to test" do
- ExampleHobsonProject.sleep_and_log_for 1
- end
-
-end
View
9 spec/c_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'
-
-describe 'C' do
-
- it "should take 1 second to test" do
- ExampleHobsonProject.sleep_and_log_for 1
- end
-
-end
View
9 spec/d_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'
-
-describe 'D' do
-
- it "should take 1 second to test" do
- ExampleHobsonProject.sleep_and_log_for 1
- end
-
-end
View
9 spec/e_spec.rb
@@ -1,9 +0,0 @@
-require 'spec_helper'
-
-describe 'E' do
-
- it "should take 10 second to test" do
- ExampleHobsonProject.sleep_and_log_for 10
- end
-
-end
View
9 spec/example_spec.rb
@@ -0,0 +1,9 @@
+require 'spec_helper'
+
+describe 'A' do
+
+ it "should be an example spec" do
+ true.should be_true
+ end
+
+end
View
10 spec/flakey_spec.rb
@@ -1,10 +0,0 @@
-require 'spec_helper'
-
-describe 'Flakey Spec' do
-
- it "should fail 60 percent of the time" do
- ExampleHobsonProject.sleep_and_log_for 10
- 60.percent_of_the_time{ raise "something mysterious went wrong D=" }
- end
-
-end

0 comments on commit d6165a8

Please sign in to comment.
Something went wrong with that request. Please try again.