[Ironruby-core] no such file to load -- spec/story (LoadError)

Sundae Oliseh lists at ruby-forum.com
Thu Nov 25 10:18:38 EST 2010


Hi Guys,

I'm trying to run the following 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


And I get this error:

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 of what I'm doing wrong?

Thanks for any attention.

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list