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
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
end
before { get :show, id: mapping.to_param, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :show }
end
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
end
before { get :show, id: mapping.to_param, logic_id: source_logic.id }
it { should respond_with :success }
it { should render_template :show }
end
end
before { get :new, logic_id: source_logic.id }
it { should respond_with :redirect }
end
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