aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/operation_spec.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-12-20 20:57:41 +0000
committerMatthew Lemon <y@yulqen.org>2023-12-20 20:57:41 +0000
commit8152b66ea52909f634fb77092bf383d91017f05c (patch)
treea794d28636bc9baaf3a88120bb670d73974c6742 /spec/models/operation_spec.rb
parent39248cd32ede354aec38e617415b432570f4f454 (diff)
Adds shoulda for rspec
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