Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cucumber failing for no conversion

  • Loading branch information...
commit 335b16794886124ddd2aa1818d3d76d5a29fbd3e 1 parent 51f3e1b
@coreyhaines authored
View
3  features/step_definitions/number_to_lcd_steps.rb
@@ -3,9 +3,10 @@
end
When /^I convert (the number "[^\"]*") to LCD$/ do |number|
- @converted = NumberToLCD.convert(number)
+ @converted = NumberToLcd.convert(number)
end
Then /^I should get the following representation$/ do |lcd_representation|
+ @converted.should == lcd_representation
end
View
4 lib/number_to_lcd.rb
@@ -0,0 +1,4 @@
+class NumberToLcd
+ def self.convert(this_number)
+ end
+end
View
6 spec/number_to_lcd_spec.rb
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-describe "NumberToLcd" do
- it "fails" do
- fail "hey buddy, you should probably rename this file and start specing for real"
+describe NumberToLcd do
+ it "can convert a number" do
+ NumberToLcd.convert(1)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.