moved the fixture to the right place
This commit is contained in:
parent
2e1123275e
commit
a30affe8d3
5 changed files with 13 additions and 14 deletions
|
|
@ -17,6 +17,6 @@
|
||||||
.span-15
|
.span-15
|
||||||
#facebox_header
|
#facebox_header
|
||||||
%h4
|
%h4
|
||||||
= t('conversations.index.new_message')
|
= t('mentioning') + @person.name
|
||||||
|
|
||||||
= render :partial => 'shared/publisher', :locals => { :aspect => @aspect, :aspect_ids => @aspect_ids, :aspects_with_person => @aspects_with_person, :person => @person}
|
= render :partial => 'shared/publisher', :locals => { :aspect => @aspect, :aspect_ids => @aspect_ids, :aspects_with_person => @aspects_with_person, :person => @person}
|
||||||
|
|
|
||||||
|
|
@ -539,8 +539,7 @@ en:
|
||||||
|
|
||||||
status_messages:
|
status_messages:
|
||||||
new_status_message:
|
new_status_message:
|
||||||
tell_me_something_good: "tell me something good"
|
mentioning: "Mentioning: "
|
||||||
oh_yeah: "oh yeah!"
|
|
||||||
show:
|
show:
|
||||||
destroy: "Delete"
|
destroy: "Delete"
|
||||||
permalink: "permalink"
|
permalink: "permalink"
|
||||||
|
|
|
||||||
|
|
@ -172,15 +172,6 @@ describe PeopleController do
|
||||||
get :show, :id => @person.id
|
get :show, :id => @person.id
|
||||||
assigns(:posts).should =~ posts_user_can_see
|
assigns(:posts).should =~ posts_user_can_see
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'generates a jasmine fixture' do
|
|
||||||
contact = @user.contact_for(@person)
|
|
||||||
aspect = @user.aspects.create(:name => 'people')
|
|
||||||
contact.aspects << aspect
|
|
||||||
contact.save
|
|
||||||
get :show, :id => @person
|
|
||||||
save_fixture(html_for("body"), "person_show")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
context "when the person is not a contact of the current user" do
|
context "when the person is not a contact of the current user" do
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,15 @@ describe StatusMessagesController do
|
||||||
:person_id => @user2.person.id
|
:person_id => @user2.person.id
|
||||||
response.should be_success
|
response.should be_success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'generates a jasmine fixture' do
|
||||||
|
contact = @user1.contact_for(@user2.person)
|
||||||
|
aspect = @user1.aspects.create(:name => 'people')
|
||||||
|
contact.aspects << aspect
|
||||||
|
contact.save
|
||||||
|
get :new, :person_id => @user2.person.id, :layout => true
|
||||||
|
save_fixture(html_for("body"), "status_message_new")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#show' do
|
describe '#show' do
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ describe("Publisher", function() {
|
||||||
|
|
||||||
describe("bindAspectToggles", function() {
|
describe("bindAspectToggles", function() {
|
||||||
beforeEach( function(){
|
beforeEach( function(){
|
||||||
spec.loadFixture('person_show');
|
spec.loadFixture('status_message_new');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('gets called on initialize', function(){
|
it('gets called on initialize', function(){
|
||||||
|
|
@ -69,7 +69,7 @@ describe("Publisher", function() {
|
||||||
});
|
});
|
||||||
describe('toggleAspectIds', function(){
|
describe('toggleAspectIds', function(){
|
||||||
beforeEach( function(){
|
beforeEach( function(){
|
||||||
spec.loadFixture('person_show');
|
spec.loadFixture('status_message_new');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds a hidden field to the form if there is not one already', function(){
|
it('adds a hidden field to the form if there is not one already', function(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue