Sha256: 3f6e0d48a918b4063225732403209f9095df9d0bf64946a5f3f87ba51166c77c
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roroacms-0.0.7 | spec/requests/roroacms/admin/theme_spec.rb |