Sha256: 79015b3d7925b4d6b1ca1d61d5da23f11df65a95f68a27f22ea89f757c31bde9

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

Given(/^a (.*) writer$/) do |type|
  @writer = R2RDF::Writer.const_get(type).new
end

When(/^I call its from_turtle method on the file (.*)$/) do |file|
  @result = @writer.from_turtle(file)
end

When(/^I call its from_turtle method on the turtle string$/) do
  f=Tempfile.open('writerttl'); f.write @turtle_string; f.close
  @result = @writer.from_turtle(f.path)
  f.unlink
end

Then(/^I should receive a \.arff file as a string$/) do
  @result.is_a?(String).should be true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bio-publisci-0.0.6 features/writer_steps.rb
bio-publisci-0.0.5 features/writer_steps.rb
bio-publisci-0.0.4 features/writer_steps.rb
bio-publisci-0.0.3 features/writer_steps.rb
bio-publisci-0.0.2 features/writer_steps.rb
bio-publisci-0.0.1 features/writer_steps.rb