Sha256: 2128099ff603c523cec0960df67df266650ee4d30fd7987bd1165220582ab5d1

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require "spec_helper"

describe "Fetcher::Mongoid::Models::Db" do
	context "when i create a PersonUser" do
		
		before do
			Fetcher::Mongoid::Models::Db.new "./config/main.yml"
		end

		let(:personuser) {PersonUser.new}

		it "should return false when inserted without an access token" do
			personuser.save.should == false
		end

		it "should return true when inserted with an access token" do
			personuser.accessToken = "askjhdla654654kjsdhlaksdjhlkasjdh65464"
			personuser.save.should == true
		end

		after do
			personuser.remove
		end
	
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fetcher-mongoid-models-0.0.0 spec/models/person_user_spec.rb