spec/controllers/dsl_controller_spec.rb in databound-0.2.1 vs spec/controllers/dsl_controller_spec.rb in databound-1.0.0
- old
+ new
@@ -9,11 +9,10 @@
data: {
name: 'John',
city: 'hottest',
},
scope: {},
- extra_find_scopes: [],
}
post(:create, javascriptize(data))
end
@@ -43,11 +42,10 @@
data: {
name: 'John',
city: 'coldest',
},
scope: {},
- extra_find_scopes: [],
}
post(:create, javascriptize(data))
end
@@ -78,11 +76,10 @@
data: {
name: 'John',
city: 'New York',
},
scope: {},
- extra_find_scopes: [],
}
expect { post(:create, javascriptize(data)) }.to raise_error(
Databound::NotPermittedError,
"DSL column 'city' received unmatched string 'New York'." \
@@ -102,11 +99,10 @@
data: {
id: 1,
city: 'hottest',
},
scope: {},
- extra_find_scopes: [],
}
post(:update, javascriptize(data))
end
@@ -139,11 +135,10 @@
id: 1,
name: 'Peter',
city: 'coldest',
},
scope: {},
- extra_find_scopes: [],
}
post(:update, javascriptize(data))
end
@@ -177,10 +172,9 @@
id: 1,
name: 'John',
city: 'New York',
},
scope: {},
- extra_find_scopes: [],
}
expect { post(:create, javascriptize(data)) }.to raise_error(
Databound::NotPermittedError,
"DSL column 'city' received unmatched string 'New York'." \