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. -- Posted via http://www.ruby-forum.com/.
Ivan Porto Carerro
2010-Nov-24 20:54 UTC
[Ironruby-core] syntax error, unexpected END_OF_FIL E
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 Wed, Nov 24, 2010 at 7:40 PM, Oliseh Oliseh <lists at ruby-forum.com> wrote:> 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20101124/045a7028/attachment.html>
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*ndThanks 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. -- Posted via http://www.ruby-forum.com/.