spec/blather/stanza/presence/status_spec.rb in blather-0.4.7 vs spec/blather/stanza/presence/status_spec.rb in blather-0.4.8
- old
+ new
@@ -114,10 +114,10 @@
status2.from = 'd@e/f'
lambda { status1 <=> status2 }.must_raise(Blather::ArgumentError)
end
- Blather::Stanza::Presence::Status::VALID_STATES.each do |valid_state|
+ ([:available] + Blather::Stanza::Presence::Status::VALID_STATES).each do |valid_state|
it "provides a helper (#{valid_state}?) for state #{valid_state}" do
Blather::Stanza::Presence::Status.new.must_respond_to :"#{valid_state}?"
end
it "returns true on call to (#{valid_state}?) if state == #{valid_state}" do