spec/network/http/proxy_spec.rb in ronin-support-0.1.0 vs spec/network/http/proxy_spec.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -1,11 +1,11 @@ require 'spec_helper' require 'ronin/network/http/proxy' describe Network::HTTP::Proxy do describe "parse" do - subject { Network::HTTP::Proxy } + subject { described_class } it "should parse host-names" do proxy = subject.parse('127.0.0.1') proxy.host.should == '127.0.0.1' @@ -44,10 +44,10 @@ proxy.port.should == 80 end end describe "create" do - subject { Network::HTTP::Proxy } + subject { described_class } let(:host) { '127.0.0.1' } let(:port) { 8080 } it "should accept Proxy objects" do