logic_mappings_controller_spec.rb revision 23305f217b86a2ebf90a848af9036908e0070542
require 'spec_helper'
let!(:user) { FactoryGirl.create :user }
source: source_logic, target: target_logic, user: user
end
before { get :show, id: mapping.id, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
end
end
end
before { delete :destroy, id: mapping.id, logic_id: source_logic.id }
end
end
before { get :edit, id: mapping.id, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :edit }
end
end
before { get :show, id: mapping.id, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :new }
end
before do
}
end
end
end
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
before { delete :destroy, id: mapping.id, logic_id: source_logic.id }
end
end
before { get :edit, id: mapping.id, logic_id: source_logic.id }
it { should respond_with :redirect }
end
end
before { get :show, id: mapping.id, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, logic_id: source_logic.id }
it { should respond_with :redirect }
it { should set_the_flash }
end
end
before do
}
end
end
end
before do
put :update, logic_id: source_logic.id, id: mapping.id,
}
end
end
end
before { delete :destroy, id: mapping.id, logic_id: source_logic.id }
end
end
end