Sha256: 265c7854b8a80892ee79347a2d2ed16412a0376976a38bb0ba2f1d408f7b770c

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')

matake_likes = Smartfm::User.find('matake').likes

Smartfm::Like::ATTRIBUTES.each do |attr|
  describe Smartfm::Like, "##{attr}" do
    it "should be accessible" do
      matake_likes.first.should respond_to(attr)
    end
  end
end

Smartfm::Like::ATTRIBUTES.each do |attr|
  describe Smartfm::Like, "##{attr}" do
    it "should not be nil" do
      matake_likes.first.should_not be_nil
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
nov-smartfm-1.0.0 spec/smartfm/model/like_spec.rb
nov-smartfm-1.0.2 spec/smartfm/models/like_spec.rb
smartfm-1.0.1 spec/smartfm/models/like_spec.rb
smartfm-1.0.2 spec/smartfm/models/like_spec.rb
smartfm-1.0.0 spec/smartfm/models/like_spec.rb