Does anybody use Rspec with Oracle? I have RoR app + Oracle DB. I use
I have installed Rspec plugin and generated spec for model Country.
If I use “@countries = Country.new” in my spec I get
“ArgumentError in ‘Country should be valid’
block not supplied
“@countries = Country.find(:first)” works but “@countries =
Country.new” doesn’t work.
I have found some modifications for Rspec 0.9.2 in files
but those modifications have not helped me.
This is my spec:
require File.dirname(FILE) + ‘/…/spec_helper’
describe Country do
@countries = Country.new
@countries = Country.find(:first)
it “should be valid” do
Does anybody know how I can use method “new” of model in my Rspec’s
files with Oracle?