Sha256: 65e3a186ea786696bf88311af1b81f2d94cb588b020152b0c039d4d75c3a3c9c
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
require 'spec_helper' describe CloudspaceChat::Room do before { @room = CloudspaceChat::Room.new } subject { @room } it { should have_many :current_room_users } it { should respond_to :name } it { should respond_to :public } it { should validate_presence_of :name } it "should validate public is true or false" do @room.public = true should have(0).errors_on :public @room.public = false should have(0).errors_on :public end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudspace_chat_service-0.0.1 | spec/models/room_spec.rb |