9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksarequire 'spec_helper'
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksadescribe LogicMappingsController do
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa should route(:get, '/logic_mappings').to(
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa controller: :logic_mappings, action: :index)
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa should route(:post, '/logic_mappings').to(
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa controller: :logic_mappings, action: :create)
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa should route(:get, '/logic_mappings/new').to(
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa controller: :logic_mappings, action: :new)
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa should route(:get, '/logic_mappings/my_logic_mapping/edit').to(
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa controller: :logic_mappings, action: :edit, id: 'my_logic_mapping')
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa should route(:get, '/logic_mappings/my_logic_mapping').to(
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa controller: :logic_mappings, action: :show, id: 'my_logic_mapping')
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa should route(:put, '/logic_mappings/my_logic_mapping').to(
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa controller: :logic_mappings, action: :update, id: 'my_logic_mapping')
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa it do
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa should route(:delete, '/logic_mappings/my_logic_mapping').to(
1d2776811d0d5362a7aaaa09be8c80eb09b3a9e4Eugen Kuksa controller: :logic_mappings, action: :destroy, id: 'my_logic_mapping')
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksa end
9721f58c0c6959fae3a048672ad4eacc6a1123e7Eugen Kuksaend