Sha256: ea90b973a747ff0178cfb4883c772e543ad2ea1428b5bad7ffd8194c8e5c2381
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' describe Popular::Popular do context 'popular user' do it 'is popular' do expect( PopularModel ).to be_popular end end context 'un-popular user' do it 'is not popular' do expect( UnpopularModel ).to_not be_popular end end it_behaves_like 'a popular model' do let ( :random_object ) { RandomClass.new } let ( :popular_model ) { PopularModel.create } let ( :another_popular_model ) { PopularModel.create } let ( :popular_model_with_after_befriend_callback ) { PopularModelWithAfterBefriendCallback.create } let ( :popular_model_with_before_befriend_callback ) { PopularModelWithBeforeBefriendCallback.create } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
popular-0.3.2 | spec/popular/popular_spec.rb |
popular-0.3.1 | spec/popular/popular_spec.rb |
popular-0.3.0 | spec/popular/popular_spec.rb |