Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created June 22, 2012 16:59
Show Gist options
  • Select an option

  • Save DCarper/2973977 to your computer and use it in GitHub Desktop.

Select an option

Save DCarper/2973977 to your computer and use it in GitHub Desktop.

Revisions

  1. Dan Carper created this gist Jun 22, 2012.
    12 changes: 12 additions & 0 deletions index.haml_spec.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    def scope(selector, &block)
    yield @page.find(selector)
    end

    describe Blah do
    it 'should do stuff' do

    scope("#selector") do |chunk|
    chunk.should_not have_content('snosberry')
    end
    end
    end