Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
397 B

require "rails_helper"
RSpec.describe Organisation, type: :model do
describe "#new" do
let!(:user) { FactoryBot.create(:user) }
let(:organisation) { Organisation.first }
it "has expected fields" do
expect(organisation.attribute_names).to include("name", "phone", "org_type")
end
it "has users" do
expect(organisation.users.first).to eq(user)
end
end
end