Sha256: f5d85c601b83e86db57bfa30b6164e288b6c48a217b63fa5b8eddae886d5918d
Contents?: true
Size: 682 Bytes
Versions: 9
Compression:
Stored size: 682 Bytes
Contents
require 'spec_helper' RSpec.describe "Admin::Themes", :type => :request do let!(:admin) { FactoryGirl.create(:admin) } before { sign_in(admin) } describe "GET /admin/themes" do before(:each) do visit "/admin/themes" end it "should display the avalible themes" do expect(page).to have_content('Themes') expect(page).to have_content('roroa 1') end it "should allow you to update the current theme" do find('#theme_roroa1').set(true) find('button[type=submit]').click expect(current_path).to eq("/admin/themes") expect(page).to have_content('Success!') end end end
Version data entries
9 entries across 9 versions & 1 rubygems