Commit 160b1b3f authored by Stefan Damm's avatar Stefan Damm

Added test for :name_and_version mode of UI.pod

parent ca8f511f
...@@ -41,6 +41,13 @@ module Pod ...@@ -41,6 +41,13 @@ module Pod
output = UI.output output = UI.output
output.should.include? "RestKit/Network" output.should.include? "RestKit/Network"
end end
it "presents only name and version of a specification set in :name_and_version mode" do
@set = SourcesManager.search_by_name('RestKit').first
UI.pod(@set, :name_and_version)
output = UI.output
output.should.include? "RestKit #{@set.versions.first}"
end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment