Remove controller :assigns warnings/shim

This commit is contained in:
Benjamin Fleischer
2016-06-04 14:47:22 -05:00
parent 913f396bb1
commit caf4910b6e
4 changed files with 6 additions and 15 deletions

View File

@@ -163,7 +163,7 @@ module ActionController
end
expected = {
data: {
id: assigns(:profile).id.to_s,
id: @controller.instance_variable_get(:@profile).id.to_s,
type: 'profiles',
attributes: {
name: 'Name 1',
@@ -246,7 +246,7 @@ module ActionController
expected = {
data: [
{
id: assigns(:profiles).first.id.to_s,
id: @controller.instance_variable_get(:@profiles).first.id.to_s,
type: 'profiles',
attributes: {
name: 'Name 1',
@@ -269,7 +269,7 @@ module ActionController
expected = {
data: [
{
id: assigns(:profiles).first.id.to_s,
id: @controller.instance_variable_get(:@profiles).first.id.to_s,
type: 'profiles',
attributes: {
name: 'Name 1',