Sha256: 23309e3906211b7ce7b65f034c81566f4e3e3c9e71991cafab5e262165202945
Contents?: true
Size: 578 Bytes
Versions: 4
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' require File.expand_path(File.dirname(__FILE__) + '/parser_helper') module RubyHackernews describe UserInfoParser do before :each do @parser = UserInfoParser.new(ParserHelper.second_line) end describe :parse do it "should pass the right user name" do UserInfo.should_receive(:new).with("johnthedebs", anything) @parser.parse end it "should pass the right user page" do UserInfo.should_receive(:new).with(anything, "user?id=johnthedebs") @parser.parse end end end end
Version data entries
4 entries across 4 versions & 1 rubygems