features/orm_steps.rb in bio-publisci-0.0.7 vs features/orm_steps.rb in bio-publisci-0.0.8
- old
+ new
@@ -1,9 +1,9 @@
require_relative '../lib/bio-publisci.rb'
Given /^an ORM::DataCube entitled "(.*?)"$/ do |name|
- @cube = PubliSci::ORM::DataCube.new(name: name)
+ @cube = PubliSci::DataSet::ORM::DataCube.new(name: name)
end
Given /^an ORM::DataCube entitled "(.*?)" with the following options:$/ do |name, opts|
options_hash = {name: name}
opts.hashes.map{|hash|
@@ -16,11 +16,11 @@
v = true if v =="true"
v = false if v =="false"
options_hash[k] = v
}
- @cube = PubliSci::ORM::DataCube.new(options_hash)
+ @cube = PubliSci::DataSet::ORM::DataCube.new(options_hash)
end
Given(/^a turtle string from file (.*)$/) do |file|
@string = IO.read(file)
end
@@ -28,11 +28,11 @@
Given(/^the URI string "(.*?)"$/) do |uri|
@string = uri
end
When(/^I call the ORM::DataCube class method load on it$/) do
- @cube = PubliSci::ORM::DataCube.load(@string)
+ @cube = PubliSci::DataSet::ORM::DataCube.load(@string)
end
When /^I add a "(.*?)" dimension$/ do |dim|
@cube.add_dimension(dim)
end
@@ -68,7 +68,7 @@
Then /^the to_n3 method should return a string with a "(.*?)"$/ do |search|
@cube.to_n3[search].should_not be nil
end
Then(/^I should receive an ORM::DataCube object$/) do
- @cube.is_a?(PubliSci::ORM::DataCube).should == true
+ @cube.is_a?(PubliSci::DataSet::ORM::DataCube).should == true
end