# Syntax error, unexpected END\_OF\_FIL E

**URL:** <https://www.ruby-forum.com/t/syntax-error-unexpected-end-of-fil-e/199602>\
**Category:** IronRuby\
**Created:** [November 24, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-end-of-fil-e/199602 "2010-11-24T20:40:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 24, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-end-of-fil-e/199602/1 "2010-11-24T20:40:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![oliseh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oliseh](https://www.ruby-forum.com/u/oliseh)\
**Post date:** [November 24, 2010, 10:08pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-end-of-fil-e/199602/2 "2010-11-24T22:08:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![oliseh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oliseh](https://www.ruby-forum.com/u/oliseh)\
**Post date:** [November 24, 2010, 10:22pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-end-of-fil-e/199602/3 "2010-11-24T22:22:37Z")

</div>

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.
