spec/models/hatchy/contribution_spec.rb in hatchy-0.0.6.pre vs spec/models/hatchy/contribution_spec.rb in hatchy-0.0.7.pre

- old
+ new

@@ -1,7 +1,14 @@ require 'rails_helper' module Hatchy RSpec.describe Contribution, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + let(:contriution){create(:hatchy_contribution)} + + describe "associations" do + it{ is_expected.to belong_to :user} + it{ is_expected.to belong_to :reward} + it{ is_expected.to belong_to :project} + it{ is_expected.to belong_to :country} + end end end