Sha256: b02df902bc2bdfc467e7e6f5912abf3eab9e99830bdf7cae3bdb825690bb59d8

Contents?: true

Size: 492 Bytes

Versions: 7

Compression:

Stored size: 492 Bytes

Contents

shared_examples_for 'with_scope' do |html|

    let(:with_scope) do
        # Make sure the scope has been loaded.
        subject.scope
        subject
    end

    describe '#to_rpc_data' do
        let(:data) { with_scope.to_rpc_data }

        it "does not include 'scope'" do
            data.should_not include 'scope'
        end
    end

    describe '#scope' do
        it 'returns scope' do
            subject.scope.should be_kind_of described_class::Scope
        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0.5 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0.4 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0.3 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0.2 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0.1 spec/support/shared/element/capabilities/with_scope.rb
arachni-1.0 spec/support/shared/element/capabilities/with_scope.rb