spec/unit/lib/web/page_spec.rb in howitzer-2.1.1 vs spec/unit/lib/web/page_spec.rb in howitzer-2.2.0

- old
+ new

@@ -369,9 +369,16 @@ subject { described_class.instance.capybara_context } before { expect(Capybara).to receive(:current_session).and_return(:context) } it { is_expected.to eq(:context) } end + describe '#meta' do + let(:page) { described_class.instance } + it { expect(page.instance_variable_get(:@meta)).to be_nil } + it { expect(page.meta).to be_an_instance_of(Howitzer::Meta::Entry) } + it { expect(page.meta.context).to eq(page) } + end + describe 'includes proxied capybara methods' do let(:reciever) { described_class.instance } include_examples :capybara_methods_proxy end end