features/writer_steps.rb in bio-publisci-0.0.7 vs features/writer_steps.rb in bio-publisci-0.0.8

- old
+ new

@@ -1,7 +1,7 @@ Given(/^a (.*) writer$/) do |type| - @writer = PubliSci::Writer.const_get(type).new + @writer = PubliSci::Writers.const_get(type).new end When(/^I call its from_turtle method on the file (.*)$/) do |file| @result = @writer.from_turtle(file) end @@ -11,7 +11,14 @@ @result = @writer.from_turtle(f.path) f.unlink end Then(/^I should receive a \.arff file as a string$/) do + puts @result @result.is_a?(String).should be true end + +Then(/^I should receive a \.csv file as a string$/) do + puts @result + @result.is_a?(String).should be true +end +