spec/cli_spec.rb in gem-search-0.0.6 vs spec/cli_spec.rb in gem-search-0.0.7

- old
+ new

@@ -12,10 +12,10 @@ before do stub_request(:get, build_search_uri('network_error_orccurred')). to_return(:status => 500, :body => '[]') end it 'should display a network error message' do - capture(:stdout) { @cli.search('network_error_orccurred') }.should == "An unexpected Network error has occurred.\n" + capture(:stdout) { @cli.search('network_error_orccurred') }.should match(/An unexpected Network error has occurred.\n/) end end context 'with nonexistence gem' do before do \ No newline at end of file