Sha256: 993ab876d815fd0dd5439baab7754c4ee8d528d6fcace2851fdafde93e04c2b1
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require 'integration/spec_helper' describe Ashikawa::AR::Search do before(:all) { require 'examples/person.rb' Ashikawa::AR.setup :default, ARANGO_HOST database = Ashikawa::Core::Database.new ARANGO_HOST @collection = database["people"] @collection.truncate! @johnny = @collection.create name: "Johnny" @jens = @collection.create name: "Jens" } subject { Person } it "should get the right status of a found record" do person = subject.find @johnny.id person.new_record?.should be_false person.persisted?.should be_true person.deleted?.should be_false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ashikawa-ar-0.1.3 | spec/integration/model_spec.rb |
ashikawa-ar-0.1.2 | spec/integration/model_spec.rb |