[Ironruby-core] syntax error, unexpected END_OF_FIL E

Oliseh Oliseh lists at ruby-forum.com
Wed Nov 24 14:40:02 EST 2010


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/.


More information about the Ironruby-core mailing list