Sha256: cfcd6f526655c7bd56eabc55035303fabc9d0f0d9e36a1cd6b268910313159ad

Contents?: true

Size: 475 Bytes

Versions: 15

Compression:

Stored size: 475 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe RevisionHistory do 
  describe "#revisions" do 
    before do 
      @history = Fabricate(:revision_history)
    end
    
    it "should return array" do 
      @history.revisions.class.should == Array
    end
    
    it "should return array even if revision_history is empty" do 
      @history.stub(:revision_uris).and_return(nil)
      @history.revisions.class.should == Array
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rallytastic-1.4.9 spec/revision_history_spec.rb
rallytastic-1.4.8 spec/revision_history_spec.rb
rallytastic-1.4.7 spec/revision_history_spec.rb
rallytastic-1.4.6 spec/revision_history_spec.rb
rallytastic-1.4.5 spec/revision_history_spec.rb
rallytastic-1.4.4 spec/revision_history_spec.rb
rallytastic-1.4.0 spec/revision_history_spec.rb
rallytastic-1.3.0 spec/revision_history_spec.rb
rallytastic-1.2.8 spec/revision_history_spec.rb
rallytastic-1.2.7 spec/revision_history_spec.rb
rallytastic-1.2.6 spec/revision_history_spec.rb
rallytastic-1.2.5 spec/revision_history_spec.rb
rallytastic-1.2.4 spec/revision_history_spec.rb
rallytastic-1.2.3 spec/revision_history_spec.rb
rallytastic-1.2.2 spec/revision_history_spec.rb