fix tests
This commit is contained in:
parent
7c058fd3e0
commit
de7cb2d6ab
|
|
@ -80,7 +80,7 @@ gem 'iso-639'
|
|||
gem 'language_list'
|
||||
|
||||
group :development, :test do
|
||||
gem 'rspec-rails', "2.99.0"
|
||||
gem 'rspec-rails', "2.14.2"
|
||||
gem "activerecord-import", "~> 0.4.1"
|
||||
gem 'guard-rspec', '0.5.5'
|
||||
gem 'jasmine', '1.3.1'
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@
|
|||
function bindMusicians(musicians, isPending) {
|
||||
$.each(musicians, function(index, musician) {
|
||||
var instrumentLogoHtml = '';
|
||||
if ("instruments" in musician) {
|
||||
if ("instruments" in musician && musician.instruments != null) {
|
||||
for (var j=0; j < musician.instruments.length; j++) {
|
||||
var instrument = musician.instruments[j];
|
||||
var inst = '../assets/content/icon_instrument_default24.png';
|
||||
|
|
|
|||
|
|
@ -662,6 +662,7 @@
|
|||
}
|
||||
|
||||
function afterShow() {
|
||||
context.JK.guardAgainstBrowser(app);
|
||||
}
|
||||
|
||||
function getFormattedTime(date, change) {
|
||||
|
|
@ -749,7 +750,6 @@
|
|||
context.JK.GenreSelectorHelper.render('#create-session-genre');
|
||||
|
||||
inviteMusiciansUtil.loadFriends();
|
||||
context.JK.guardAgainstBrowser(app);
|
||||
|
||||
context.JK.dropdown($('#session-musician-access'));
|
||||
context.JK.dropdown($('#session-fans-access'));
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ describe "In a Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
before(:each) do
|
||||
UserMailer.deliveries.clear
|
||||
ActiveMusicSession.delete_all
|
||||
FactoryGirl.create(:friendship, :user => user, :friend => finder)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue