Sha256: af36fae96916a639b7cc311f21028aa77bd40dd2f307650cd9d6f332885ef02d

Contents?: true

Size: 916 Bytes

Versions: 15

Compression:

Stored size: 916 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../test_helper' )

module IntegrationTests
  class AdminPluginsTest < ActionController::IntegrationTest
    def setup
      super
      @site = use_site! 'site with pages'
      @admin_plugins_page = "http://#{@site.host}/admin/sites/#{@site.id}/plugins"
      @admin_plugin_page  = "http://#{@site.host}/admin/sites/#{@site.id}/plugins/test_plugin"
    end
  
    test "Admin reviews the plugins list and updates a plugin's settings" do
      login_as_admin
      visit @admin_plugins_page

      view_plugins_list
      revise_plugin_settings
    end

    def view_plugins_list
      @response.body.should have_tag('#plugins.list')
    end

    def revise_plugin_settings
      click_link 'test_plugin'
      fill_in 'string', 'a string'
      fill_in 'text', 'a text'
      click_button 'Save'
      request.url.should == @admin_plugin_page
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/integration/admin/plugins.rb
adva-0.3.1 test/integration/admin/plugins.rb
adva-0.3.0 test/integration/admin/plugins.rb
adva-0.2.4 test/integration/admin/plugins.rb
adva-0.2.3 test/integration/admin/plugins.rb
adva-0.2.2 test/integration/admin/plugins.rb
adva-0.2.1 test/integration/admin/plugins.rb
adva-0.2.0 test/integration/admin/plugins.rb
adva-0.1.4 test/integration/admin/plugins.rb
adva-0.1.3 test/integration/admin/plugins.rb
adva-0.1.2 test/integration/admin/plugins.rb
adva-0.1.1 test/integration/admin/plugins.rb
adva-0.1.0 test/integration/admin/plugins.rb
adva_cms-0.0.1 test/integration/admin/plugins.rb
adva-0.0.1 adva_cms/test/integration/admin/plugins.rb