Browse Source

admin default not active test

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

3
spec/factories.rb

@ -40,6 +40,9 @@ FactoryGirl.define do
end end
factory :admin do factory :admin do
email
password
password_confirmation {password}
end end
factory :blacklisted_domain do factory :blacklisted_domain do

6
spec/models/admin_spec.rb

@ -1,5 +1,9 @@
require 'spec_helper' require 'spec_helper'
describe Admin do 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 end

2
spec/support/shared_context/data.rb

@ -34,4 +34,6 @@ shared_context "data" do
let(:blacklisted_domain){create(:blacklisted_domain)} let(:blacklisted_domain){create(:blacklisted_domain)}
let(:admin){create(:admin)}
end end

Loading…
Cancel
Save