Permalink
Browse files

Merge pull request #32 from jwkoelewijn/fix_string_cast_spec

Changed string casting spec
  • Loading branch information...
2 parents 246b665 + 63ae1bd commit b5ca85ea91e0cdc3f07ff1a4ba9cd7585bd1e062 @dbussink dbussink committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 data_objects/lib/data_objects/spec/shared/typecast/string_spec.rb
@@ -41,7 +41,7 @@
describe 'with manual typecasting' do
before do
- @command = @connection.create_command("SELECT weight FROM widgets WHERE ad_description = ?")
+ @command = @connection.create_command("SELECT number_sold FROM widgets WHERE ad_description = ?")
@command.set_types(String)
@reader = @command.execute_reader('Buy this product now!')
@reader.next!
@@ -57,7 +57,7 @@
end
it 'should return the correct result' do
- @values.first.should == "13.4"
+ @values.first.should == "0"
end
end

0 comments on commit b5ca85e

Please sign in to comment.