Browse Source

admin default not active test

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
f19241b72e
  1. 5
      spec/factories.rb
  2. 6
      spec/models/admin_spec.rb
  3. 2
      spec/support/shared_context/data.rb

5
spec/factories.rb

@ -40,10 +40,13 @@ FactoryGirl.define do
end
factory :admin do
email
password
password_confirmation {password}
end
factory :blacklisted_domain do
name {FactoryGirl.generate(:domain_name)}
end
end
end

6
spec/models/admin_spec.rb

@ -1,5 +1,9 @@
require 'spec_helper'
describe Admin do
pending "add some examples to (or delete) #{__FILE__}"
include_context "data"
it "is inactive by default", focus: true do
admin.should_not be_active
end
end

2
spec/support/shared_context/data.rb

@ -33,5 +33,7 @@ shared_context "data" do
let(:permission3){create(:permission, :domain => domain3, :user => user)}
let(:blacklisted_domain){create(:blacklisted_domain)}
let(:admin){create(:admin)}
end

Loading…
Cancel
Save