Hi guys,
I'm new to IronRuby and I'm struggling to run my first test.
I'm getting the following error message :
pricing_scenarios_for_product_x_story.rb:32: syntax error, unexpected
END_OF_FIL
E, expecting END
End
^
When I try to run this script:
require 'rubygems'
require 'spec/story'
steps_for(:product_x) do
Given("Product $productName at $price") do |productName, price|
pending "Need to complete implementation for accessing C# object"
end
When("user requests a $amount user license") do |amount|
pending "Need to complete implementation for accessing C# object"
end
When("this does not include support") do
pending "Need to complete implementation for accessing C# object"
end
Then("the price should be $price") do |price|
pending "Need to complete implementation for accessing C# object"
End
end
with_steps_for(:product_x) do
run File.dirname(__FILE__) + "/pricing_scenarios_for_product_x"
end
Could you help me spot the error please. I've tried all sorts of thing
without success.
Thanks in advance.
on 2010-11-24 20:40
on 2010-11-24 22:08
Then("the price should be $price") do |price|
pending "Need to complete implementation for accessing C# object"
End
should be
Then("the price should be $price") do |price|
pending "Need to complete implementation for accessing C# object"
*e*nd
on 2010-11-24 22:22
Ivan Porto carrero wrote in post #963684: > Then("the price should be $price") do |price| > pending "Need to complete implementation for accessing C# object" > End > > should be > > Then("the price should be $price") do |price| > pending "Need to complete implementation for accessing C# object" > *e*nd Thanks Ivan. That solved my original problem. Now I have this new one: C:/Program Files/IronRuby 1.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:in `require': no such file to load -- spec/story (LoadError) from C:/Program Files/IronRuby 1.0/lib/ruby/site_ruby/1.8/rubygems/custo m_require.rb:31:in `require' from pricing_scenarios_for_product_x_story.rb:2 Any ideas on this one? Thanks for your patience.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.