Nicolae Claudius
13 years ago
1 changed files with 11 additions and 1 deletions
@ -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…
Reference in new issue