Sha256: 68e0d2046a984bd8020569d8be57c6872394d2aeb96052cafc19be0e137e447e

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

require 'spec_helper'

describe Impressionizer::Impression do
  fixtures :all
  
  before(:each) do
    @page = Page.find(1)
  end
  
  it "should save a blank impression for an Article that has 10 impressions" do
    @page.impressions.create
    @page.impressions.size.should eq 2
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
impressionizer-0.0.4 spec/dummy/spec/models/impressionable_spec.rb
impressionizer-0.0.3 spec/dummy/spec/models/impressionable_spec.rb