Merge branch 'develop' of bitbucket.org:jamkazam/jam-cloud into develop

This commit is contained in:
Brian Smith 2013-10-04 13:32:40 -04:00
commit 6ab0c1383d
3 changed files with 40 additions and 0 deletions

View File

@ -67,6 +67,7 @@ a.arrow-down {
select {
padding:3px;
font-size:15px;
border-radius: 6px;
}
form .body {

View File

@ -26,4 +26,10 @@
});
})(window);
</script>
<% else %>
<script>
(function(context) {
context.ga = function() {}
})(window);
</script>
<% end %>

View File

@ -0,0 +1,33 @@
require 'spec_helper'
# this test currently amounts to the barest of smoke tests; log in, see the home screen, and click a tile
# https://jamkazam.atlassian.net/browse/VRFS-749 broke even this simple functionality
describe "Admin", :js => true, :type => :feature, :capybara_feature => true do
subject { page }
before(:all) do
Capybara.javascript_driver = :poltergeist
Capybara.current_driver = Capybara.javascript_driver
Capybara.default_wait_time = 10
end
let(:user) { FactoryGirl.create(:admin) }
before(:each) do
UserMailer.deliveries.clear
sign_in_poltergeist user
visit "/"
find('h2', text: 'musicians')
end
describe "click musician tile" do
before(:each) do
find("div.homecard.musicians").trigger(:click)
end
it { should have_selector('h1', text: 'musicians' ) }
end
end