[Ironruby-core] syntax error, unexpected END_OF_FIL E

Ivan Porto Carerro ivan at flanders.co.nz
Wed Nov 24 15:54:09 EST 2010


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>


More information about the Ironruby-core mailing list