logic_mappings_controller_spec.rb revision 1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4
require 'spec_helper'
source: source_logic, target: target_logic, user: user
end
before { get :show, id: mapping.to_param, 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
}
end
end
end
end
end
end
before { delete :destroy, id: mapping.to_param, logic_id: source_logic.id }
end
end
before { get :edit, id: mapping.to_param, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :edit }
end
end
before { get :show, id: mapping.to_param, 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
}
end
end
end
before { delete :destroy, id: mapping.to_param, logic_id: source_logic.id }
end
end
before { get :edit, id: mapping.to_param, logic_id: source_logic.id }
it { should respond_with :redirect }
end
end
before { get :show, id: mapping.to_param, 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
}
end
end
end
before { delete :destroy, id: mapping.to_param, logic_id: source_logic.id }
end
end
end