spec/models/anoubis/tenant_spec.rb in anoubis-1.0.0 vs spec/models/anoubis/tenant_spec.rb in anoubis-1.0.1

- old
+ new

@@ -1,8 +1,8 @@ require 'rails_helper' -module Anubis +module Anoubis RSpec.describe Tenant, type: :model do it "is valid" do expect(build_stubbed(:tenant)).to be_valid end @@ -42,25 +42,25 @@ tenant.ident = 'wrkt' expect(tenant.save).to eq true end it "can't change system tenant ident" do - tenant = Anubis::Tenant.find(1) + tenant = Anoubis::Tenant.find(1) tenant.ident = 'tst' expect(tenant.save).to eq false end it "can destroy" do tenant = create :tenant, title: 'Destroy', ident: 'dst' - Anubis::TenantSystem.where(tenant_id: tenant.id).each do |item| + Anoubis::TenantSystem.where(tenant_id: tenant.id).each do |item| item.destroy end tenant.destroy expect(tenant.destroyed?).to eq true end it "can't destroy system tenant" do - tenant = Anubis::Tenant.find(1) + tenant = Anoubis::Tenant.find(1) tenant.destroy expect(tenant.destroyed?).to eq false end end end