Rspec 3.0 support

This commit is contained in:
erwanlr
2014-06-02 22:06:49 +02:00
parent c12b1d0670
commit c8c126d444
55 changed files with 338 additions and 336 deletions

View File

@@ -22,13 +22,13 @@ describe 'WpUsers::Detectable' do
describe '::request_params' do
it 'return an empty Hash' do
subject.request_params.should === {}
expect(subject.request_params).to be === {}
end
end
describe '::passive_detection' do
it 'return an empty WpUsers' do
subject.passive_detection(wp_target).should == subject.new
expect(subject.passive_detection(wp_target)).to eq subject.new
end
end
@@ -36,7 +36,7 @@ describe 'WpUsers::Detectable' do
after do
targets = subject.send(:targets_items, wp_target, options)
targets.should == @expected
expect(targets).to eq @expected
end
context 'when no :range' do

View File

@@ -25,7 +25,7 @@ describe 'WpUsers::Output' do
subject.push(@input)
subject.flatten!
subject.remove_junk_from_display_names
subject.should === @expected
expect(subject).to be === @expected
end
it 'should return an empty array' do