Sha256: c9d0b35dd119cf2fe1a5330c4e8b38722e0f429be3a993606a7dab55acf65b70

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

describe 'Page'
  
  before_each
    $page = $(fixture('page'))
  end
  
  describe 'before initialization'
    it 'should have the initial content'
      $page.find('p').html().should_equal "initial content"
    end
  end
  
  describe 'initialize'
    before_each
      change_body($page)
    end
    
    describe 'after initialization'
      it 'should have a title'
        $page.find('p').html().should_equal "body changed by change_body.js"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jspec_runner-0.1.0 spec/unit/spec.page.js