spec/spec_helper.rb in genomer-plugin-summary-0.0.1 vs spec/spec_helper.rb in genomer-plugin-summary-0.0.2

- old
+ new

@@ -10,6 +10,22 @@ require File.expand_path(f) end RSpec.configure do |config| config.mock_with :rr + + def sequence(seq, source=nil) + s = mock! + stub(s).sequence{ seq } + stub(s).source{ source } if source + stub(s).entry_type{ :sequence } + s + end + + def unresolved(seq) + s = mock! + stub(s).sequence{ seq } + stub(s).entry_type{ :unresolved } + s + end + end