Sha256: a43117b442fcf1118aac3f3b4b6ed5a07593680a7299c3a6ca1f68194f739657
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe StorageRoom::Entry do context "Class" do context "Methods" do before(:each) do StorageRoom::Entry.class_with_options('Guidebook', :collection_path => '/collections/4ddaf68b4d085d374a000003') end describe "#show_path" do it "should be defined" do Guidebook.show_path(1).should == '/collections/4ddaf68b4d085d374a000003/entries/1' end end describe "#index_path" do it "should be defined" do Guidebook.index_path.should == '/collections/4ddaf68b4d085d374a000003/entries' end end describe "#collection_path" do it "should be defined" do Guidebook.collection_path.should == '/collections/4ddaf68b4d085d374a000003' end end describe "#search_path" do it "should be defined" do Guidebook.search_path(:test =>1).should == '/collections/4ddaf68b4d085d374a000003/entries?test=1' end end describe "#json_name" do it "should be defined" do StorageRoom::Entry.json_name.should == 'entry' Guidebook.json_name.should == 'entry' end end describe "#search" do it "should load" do pending end end end end context "Instance" do before(:each) do @entry = StorageRoom::Entry.new end describe "#collection" do it "should load" do StorageRoom::Collection.should_receive(:load) @entry.collection end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
storage_room-0.2.1 | spec/storage_room/models/entry_spec.rb |
storage_room-0.2.0 | spec/storage_room/models/entry_spec.rb |