* fixing scoring test
This commit is contained in:
parent
2dda0d6db7
commit
27e6f7ce65
|
|
@ -4,6 +4,7 @@ describe "Text Message", :js => true, :type => :feature, :capybara_feature => tr
|
|||
|
||||
before(:each) do
|
||||
User.delete_all # we delete all users due to the use of find_musician() helper method, which scrolls through all users
|
||||
MaxMindManager.create_phony_database
|
||||
@user1 = FactoryGirl.create(:user, last_jam_locidispid: 1)
|
||||
@user2 = FactoryGirl.create(:user, last_jam_locidispid: 2, first_name: 'bone_crusher')
|
||||
sign_in_poltergeist(@user1)
|
||||
|
|
@ -22,11 +23,12 @@ describe "Text Message", :js => true, :type => :feature, :capybara_feature => tr
|
|||
end
|
||||
|
||||
it "on find musician in musician's tile" do
|
||||
pending "VRFS-1902"
|
||||
JamRuby::Score.delete_all
|
||||
JamRuby::Score.createx(1, 'a', 1, 2, 'b', 2, 10)
|
||||
|
||||
puts @user1.id
|
||||
JamRuby::Score.createx(locidispid_from_ip('127.0.0.1'), 'a', ip_address_to_int('127.0.0.1'),
|
||||
locidispid_from_ip('10.0.0.1'), 'a', ip_address_to_int('10.0.0.1'),
|
||||
10)
|
||||
|
||||
musician = find_musician(@user2)
|
||||
find(".result-list-button-wrapper[data-musician-id='#{@user2.id}'] .search-m-message").trigger(:click)
|
||||
find('h1', text: 'conversation with ' + @user2.name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue