Sha256: 60ff2ab6c3cd95f13487ee4ab86aac0ea9fac7b6129a979c773e9b05a5a294ee

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

require 'spec_helper'

require 'ruby_app/application'
require 'ruby_app/elements/page'

describe RubyApp::Elements::Page do
  include_context 'RubyApp::Elements'

  describe 'positive' do

    describe 'render instance' do

      let(:page) { RubyApp::Elements::Page.new }

      describe 'render :css' do
        specify { RubyApp::Application.execute(environment) { page.render(:css).should_not be_nil } }
      end

      describe 'render :js' do
        specify { RubyApp::Application.execute(environment) { page.render(:js).should_not be_nil } }
      end

      describe 'render :html' do
        specify { RubyApp::Application.execute(environment) { page.render(:html).should_not be_nil } }
      end

    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
RubyApp-0.0.8 spec/elements/page_spec.rb
RubyApp-0.0.7 spec/elements/page_spec.rb
RubyApp-0.0.6 spec/elements/page_spec.rb