Sha256: 4de157ead1a1ea3fe394996412c295a9921a3b861d70c0f91280ca5e94842eeb
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') include Fathom describe Import do before do @content = 'some content' @options = OptionsHash.new({:content => @content}) @i = Import.new(@options) @values = [1,2,3,4,5] end it "should initialize with optional content" do @i.content.should eql(@content) end it "should record the initialization options" do @i.options.should eql(@options) end it "should have a class-level import method" do Import.should be_respond_to(:import) end it "should create an import node to attach its imports to in the knowledge base" do @i.import_node.should be_a(ImportNode) end it "should pass its options to the import node for that node to record the parts it is interested in." do i = Import.new(:name => "New Import", :content => @content, :description => "This gets passed along too.") i.import_node.name.should eql("New Import") i.import_node.description.should eql("This gets passed along too.") end end
Version data entries
7 entries across 7 versions & 1 rubygems