Browse Source

permission spec

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
5a6ec17e40
  1. 12
      spec/models/permission_spec.rb

12
spec/models/permission_spec.rb

@ -1,5 +1,15 @@
require 'spec_helper' require 'spec_helper'
describe Permission do describe Permission do
pending "add some examples to (or delete) #{__FILE__}" include_context "data"
it "validates selfness" do
permission.user_id = permission.domain.user_id
permission.should have(1).error_on(:user)
end
it "validates unexsisting email" do
permission.user_email = "does.not@exist.in.db"
permission.should have(1).error_on(:user)
end
end end

Loading…
Cancel
Save