aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/operation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/operation_spec.rb')
-rw-r--r--spec/models/operation_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/operation_spec.rb b/spec/models/operation_spec.rb
index 1293524..6c59f21 100644
--- a/spec/models/operation_spec.rb
+++ b/spec/models/operation_spec.rb
@@ -13,6 +13,10 @@ RSpec.describe Operation, type: :model do
# end
subject { described_class.new(name: "Spuds", organisation: organisation) }
+ describe "associations" do
+ it { should belong_to(:organisation).class_name('Organisation') }
+ end
+
describe "existence" do
it "exists!" do
expect(subject).to be_valid