require File.join(File.dirname(__FILE__),'../../spec_helper') describe IMW::Files::Text do before do @path = "foobar.txt" @text = < /^([^\s]+) ([^\s]+)/, :into_fields => [:word1, :word2] file.parser.class.should == IMW::Parsers::RegexpParser end end