Sha256: 8aaa706a0bcf484b04c2b47df55784afb8550148bdd9ac26941bdf8bac9fa361

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

describe Item do
  before do
    elem = stub
    elem.stub!(:title).and_return("title!")
    elem.stub!(:url).and_return("url!")
    elem.stub!(:date).and_return("date!")
    @item = Item.new(elem)
  end

  it "has a title reader" do
    @item.title.should == "title!"
  end

  it "has a url reader" do
    @item.url.should == "url!"
  end

  it "has a date reader" do
    @item.date.should == "date!"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crags-2.2.1 spec/crags/item_spec.rb
crags-2.2.0 spec/crags/item_spec.rb
crags-2.1.2 spec/crags/item_spec.rb
crags-2.1.1 spec/crags/item_spec.rb
crags-2.1.0 spec/crags/item_spec.rb
crags-2.0.0 spec/crags/item_spec.rb