Sha256: ced66d9933dfc41ec82cb82c504c755656ca8d08486ffb37468a1e4a7ec754e7
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' describe Gamification::Concerns::Rewardable do describe '#medals' do let(:user) { create :user } let(:medal) { create :gamification_medal } let(:goal) { create :gamification_goal, medal: medal } before do create :gamification_reward, rewardable: user, goal: goal end it 'returns medals' do expect(user.medals).to eq [medal] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamification-1.0.0 | spec/lib/gamification/concerns/rewardable_spec.rb |