spec/prov/activity_spec.rb in bio-publisci-0.0.6 vs spec/prov/activity_spec.rb in bio-publisci-0.0.7
- old
+ new
@@ -1,18 +1,18 @@
require_relative '../../lib/bio-publisci.rb'
include PubliSci::Prov::DSL
-include PubliSci::Prov
+# include PubliSci
describe PubliSci::Prov::Activity do
before(:each) do
- @evaluator = PubliSci::Prov::DSL::Singleton.new
+ @evaluator = PubliSci::Prov::DSL::Instance.new
end
it "can generate activity fields from symbol" do
a = activity :name
- a.is_a?(Activity).should be true
+ a.is_a?(Prov::Activity).should be true
a.subject.should == "http://rqtl.org/ns/activity/name"
end
it "can specify fields manually" do
a = activity :name, subject: "http://example.org/name"
@@ -23,10 +23,10 @@
e = entity :data
a = activity :ag do
subject "http://things.com/stuff"
generated :data
end
- a.is_a?(Activity).should be true
+ a.is_a?(Prov::Activity).should be true
a.subject.should == "http://things.com/stuff"
end
it "lazy loads other objects" do
a = activity :ag do
\ No newline at end of file