search for: product_spec

Displaying 7 results from an estimated 7 matches for "product_spec".

Did you mean: products_spec
2008 Nov 04
9
RSpec and PostgreSQL not playing nicely together
...:each) do @product = Product.new end it "should not be valid" do @product.should_not be_valid @product.errors.on(:title).should_not be_nil # plenty other errors to display... end end end -- And here is the error message when I run this spec: -- spec product_spec.rb F 1) ActiveRecord::StatementInvalid in ''Product The Product model When a new blank product object gets created should not be valid'' PGError: ERROR: relation "products" does not exist : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.at...
2007 Nov 25
15
Possible Problem with RSpec and
...ve a valid image uri (PENDING: Not Yet Implemented) - should have a description - should have a title (FAILED - 1) Pending: Product should have a valid image uri (Not Yet Implemented) 1) ''Product should have a title'' FAILED expected valid? to return true, got false ./spec/models/product_spec.rb:11: Finished in 0.75 seconds 3 examples, 1 failure, 1 pending rake aborted! Command ruby -I "C:/var/RSpec/depot/vendor/plugins/rspec/lib" "C:/var/RSpec/depot/vendor/plugins/rspec/bin/spec" "spec/models/product_spec.rb" --options "C:/var/RSpec/depot/config/.....
2006 Dec 11
1
FAILED: "test" should equal "test" - what?
...ec_on_rails with a very simple test: ... specify "product name should be ''test''" do Product.find( :all ).first.name.should_equal ''test'' end ... with this fixture: first: id: 1 name: test When I run it: .F 1) ''Given a generated product_spec.rb with fixtures loaded product name should be test'' FAILED "test" should equal "test" ./spec/models/product_spec.rb:12: Finished in 0.015563 seconds 2 specifications, 1 failure rake aborted! ------------------------- "test" should equal "test",...
2007 Jan 14
2
rspec and set_table_name?
Hi there I have a Value class in my Rails app; however ''values'' is a reserved word in MySQL so in my value.rb file, I''ve declared set_table_name as ''vals''. However, in setting up my specs for this model, I''m hitting errors that seem to be resulting from rspec not seeing the set_table_name declaration in my model file. For instance,
2005 Jan 21
4
three way call using sip
Hi, i cant make a three way call using grandstream phones (BT-100) and asterisk using sip, is this supported or i need a zap interface? thanks
2004 Aug 19
4
Does Granstream BT100 Conference Button Work?
Hi All, I have tried searching everywhere but I cannot find a definitive answer as to if and how the conference button works on the BT100. Could anyone be kind enough to fill me in on some info on how to use the conferencing feature, as well as any configuration in asterisk thats needed, on this phone? Thank you, James -------------- next part -------------- An HTML attachment was scrubbed...
2007 Nov 22
11
Initial run of RSpec 1.0.8 on MS-WinXPproSP2
Rails 1.2.5 Ruby 1.8.6 Rake 0.7.3 RSpec 1.0.8 PostgreSQL 8.2.5 I am experiencing a problem with the "rake spec spec" task on an initial trial of rspec. After creating the rails app I installed rspec and rspec_on_rails in the vendor\plugins subdirectory from svn. I then used ruby script\generate rspec_model product. I next manually created the database instances depot_development and