Sha256: 7d0fd36f3fb751443e07073b85c53716debbe243d33606a2a6e99d671b6cffa0
Contents?: true
Size: 863 Bytes
Versions: 11
Compression:
Stored size: 863 Bytes
Contents
require "spec_helper" module SocialNetworking describe SharedItem, type: :model do fixtures(:participants, :"social_networking/goals") it "should add an item's participant id upon save" do goal = social_networking_goals(:participant1_goal_alpha) shared_item = SharedItem.create(item: goal, action_type: "action_type") expect(shared_item.participant_id).to eq(700_141_617) end describe "when saving" do let(:on_the_mind_statement) do OnTheMindStatement .create!(participant_id: participants(:participant1).id, description: "otms description") end it "the action type is set on a shared item" do otms = on_the_mind_statement shared_item = SharedItem.create!(item: otms) expect(shared_item.action_type).to eq("Shared") end end end end
Version data entries
11 entries across 11 versions & 1 rubygems