Skip to content

Commit

Permalink
interim commit before Kale starting work
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Davey authored and Patrick Davey committed Aug 24, 2012
1 parent cf121ee commit 5abea69
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vendor/plugins/ratatosk/spec/nzor_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,30 +88,26 @@
#TODO the partial name is "Homo sapiens"... the full name is "Homo sapiens Linnaeus, 1758"
#which should it be?
# @adapter.name.should == 'Homo sapiens'
@adapter.name.should == 'Homo sapiens Linnaeus, 1758'
@adapter.name.should == 'Homo sapiens'
end

it "should return a rank" do
@adapter.rank.should == 'species'
end

it "should have a source" do
binding.pry
@adapter.source.should_not be(nil)
end

it "should have a source identifier" do
pending
@adapter.source_identifier.should_not be(nil)
end

it "should have a source URL" do
pending
@adapter.source_url.should_not be(nil)
end

it "should save like a Taxon" do
pending
Taxon.find_by_name('Homo sapiens').should be(nil)
a = @adapter.save
puts "DEBUG: @adapter.errors: #{@adapter.errors.full_messages.join(', ')}" unless @adapter.valid?
Expand All @@ -120,7 +116,6 @@
end

it "should have the same name before and after saving" do
pending
@adapter.save
puts "DEBUG: @adapter.errors: #{@adapter.errors.full_messages.join(', ')}" unless @adapter.valid?
Taxon.find(@adapter.id).name.should == @adapter.name
Expand Down

0 comments on commit 5abea69

Please sign in to comment.