Created
March 20, 2014 20:00
-
-
Save hamnis/9672559 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/ems_spec.rb b/spec/ems_spec.rb | |
index 9620341..93732ed 100755 | |
--- a/spec/ems_spec.rb | |
+++ b/spec/ems_spec.rb | |
@@ -117,14 +117,14 @@ describe 'EMS' do | |
collection['href'].should eql collection_url | |
end | |
- %w(format body state audience slug title lang summary level).each do |field| | |
+ %w(format body state title lang summary level).each do |field| | |
it "should have #{field} on session if present" do | |
event = get_named_event(@base_url, @test_event_name) | |
collection_url = get_link(event, 'session collection') | |
collection = get_collection(collection_url) | |
if collection.has_key?('items') && collection['items'].length > 0 | |
value = get_data(collection['items'].first, field) | |
- value.should_not be_empty | |
+ value.should_not be_nil | |
end | |
end | |
end | |
@@ -176,14 +176,14 @@ describe 'EMS' do | |
end | |
end | |
- it 'should have photo on speaker on speaker collection' do | |
+ it 'should have thumbnail on speaker on speaker collection' do | |
event = get_named_event(@base_url, @test_event_name) | |
session = get_collection(get_link(event, 'session collection')) | |
if session.has_key?('items') && session['items'].length > 0 | |
collection_url = get_link(session['items'].first, 'speaker collection') | |
collection = get_collection(collection_url) | |
if collection.has_key?('items') && collection['items'].length > 0 | |
- value = get_link(collection['items'].first, 'attach-photo') | |
+ value = get_link(collection['items'].first, 'thumbnail') | |
value.should match(URL_REGEX) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment