给定以下工作代码:
require 'rspec'
require_relative 'dec_to_hex'
describe "Should convert 20 to 32" do
it "should convert correctly" do
converter("20").should == 32
end
end
为什么我不能进行实际测试
describe "Should convert 20 to 32" do
converter("20").should == 32
end
# This simply doesn't run the test, it gets ignored!
或者
it "should convert correctly" do
converter("20").should == 32
end
# This gives undefined method `it'