|
@@ -29,6 +29,16 @@ describe Scenario do
|
|
new_instance.should_not be_valid
|
|
new_instance.should_not be_valid
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+ it "validates tag_fg_color is hex color" do
|
|
|
|
+ new_instance.tag_fg_color = '#N07H3X'
|
|
|
|
+ new_instance.should_not be_valid
|
|
|
|
+ end
|
|
|
|
+
|
|
|
|
+ it "validates tag_bg_color is hex color" do
|
|
|
|
+ new_instance.tag_bg_color = '#N07H3X'
|
|
|
|
+ new_instance.should_not be_valid
|
|
|
|
+ end
|
|
|
|
+
|
|
it "only allows Agents owned by user" do
|
|
it "only allows Agents owned by user" do
|
|
new_instance.agent_ids = [agents(:bob_website_agent).id]
|
|
new_instance.agent_ids = [agents(:bob_website_agent).id]
|
|
new_instance.should be_valid
|
|
new_instance.should be_valid
|