serializations_controller_spec.rb revision 23305f217b86a2ebf90a848af9036908e0070542
require 'spec_helper'
let!(:user) { FactoryGirl.create :user }
it { should respond_with :success }
it { should render_template :show }
end
it { should respond_with :success }
it { should render_template :new }
end
before do
post :create, serialization: {
}
end
end
end
end
end
end
before do
put :update, id: serial.id, serialization: {
end
end
end
end
end
end
end
end
it { should respond_with :success }
it { should render_template :edit }
end
end
it { should respond_with :success }
it { should render_template :show }
end
it { should respond_with :success }
it { should render_template :new }
end
before do
post :create, serialization: {
end
end
end
end
end
end
before do
put :update, id: serial.id, serialization: {
mimetype: 'texttext'
}
end
end
end
end
end
end
end
end
it { should respond_with :success }
it { should render_template :edit }
end
end
before { get :show, id: serial.id, language_id: language.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, language_id: language.id }
it { should respond_with :redirect }
it { should set_the_flash }
end
before do
put :update, id: serial.id, serialization: {
}
end
end
end
before do
put :update, id: serial.id, serialization: {
}
end
end
end
end
end
end
end