language_adjoint_controller_spec.rb revision db149239590d2a39d399f12cd01609b190ea4763
require 'spec_helper'
create(:logic_mapping, source: source, target: target)
end
source: source_language, target: target_language, user: user
end
source: source_language2, target: target_language2, user: user
end
end
before { get :show, id: adjoint.id, mapping_id: mapping.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, mapping_id: mapping.id }
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, id: adjoint.id, language_adjoint: {
}
end
end
end
end
end
end
before { delete :destroy, id: adjoint.id, mapping_id: mapping.id }
end
end
before { get :edit, id: adjoint.id, mapping_id: mapping.id }
it { should respond_with :success }
it { should render_template :edit }
end
end
before { get :show, id: adjoint.id, mapping_id: mapping.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, mapping_id: mapping.id }
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, id: adjoint.id, language_adjoint: {
}
end
end
end
before { delete :destroy, id: adjoint.id, translation_id: mapping.id }
end
end
before { get :edit, id: adjoint.id, translation_id: mapping.id }
it { should respond_with :redirect }
end
end
before { get :show, id: adjoint.id, translation_id: mapping.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, translation_id: mapping.id }
it { should respond_with :redirect }
it { should set_the_flash }
end
before do
}
end
end
end
before do
put :update, id: adjoint.id, language_adjoint: {
}
end
end
end
before { delete :destroy, id: adjoint.id, translation_id: mapping.id }
end
end
end
end