Sha256: b4718eeaece989fe791db4e57a1a284a408150a21babce5a81f4f54f748d708a
Contents?: true
Size: 653 Bytes
Versions: 4
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe Colander::Parser::Base do describe "#emails" do it "should responses to it" do Colander::Parser::Base.any_instance.stub(:parse) Colander::Parser::Base.new("foo/bar").should respond_to :emails end end describe ".parse" do sample_dir = File.join(File.dirname(File.expand_path(__FILE__)), "fixtures", "samples") Dir.entries(sample_dir).each do |file_name| sample = File.join(sample_dir, file_name) next unless File.file?(sample) it "should be able to parse the sample #{file_name}" do Colander.parse(sample).emails.should be_an(Array) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
colander-0.2.1 | spec/base_spec.rb |
colander-0.2.0 | spec/base_spec.rb |
colander-0.1.2 | spec/base_spec.rb |
colander-0.1.1 | spec/base_spec.rb |