This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExTableViewCell.m | |
// TableViewExample | |
// | |
// Created by Thiago Ramos on 10/3/14. | |
// Copyright (c) 2014 br.com.exemplo.tableview. All rights reserved. | |
// | |
#import "ExTableViewCell.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// EXTableViewController.m | |
// TableViewExample | |
// | |
// Created by Thiago Ramos on 9/30/14. | |
// Copyright (c) 2014 br.com.exemplo.tableview. All rights reserved. | |
// | |
#define CELL_ID @"ExampleTableViewCellID" | |
#define CELL_HEIGHT 44.0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JSPostAdapter.m | |
// JSONModelExample | |
// | |
// Created by Thiago Ramos on 10/9/14. | |
// Copyright (c) 2014 br.com.exemplo.jsonmodel. All rights reserved. | |
// | |
#define URL_POSTS @"http://10.1.1.101:3000/posts.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JSPost.h | |
// JSONModelExample | |
// | |
// Created by Thiago Ramos on 10/9/14. | |
// Copyright (c) 2014 br.com.exemplo.jsonmodel. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "JSONModel.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// JSONModelExample | |
// | |
// Created by Thiago Ramos on 10/9/14. | |
// Copyright (c) 2014 br.com.exemplo.jsonmodel. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import "JSPostAdapter.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Admin::ResidencesController do | |
let(:user) { build_stubbed(:user) } | |
let(:residence_101) { build_stubbed(:residence) } | |
let(:residence_102) { build_stubbed(:residence) } | |
context 'Valid User' do | |
before { | |
sign_in user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Admin::ResidencesController do | |
let(:user) { double('user') } | |
let(:valid_params) { attributes_for(:residence) } | |
context "Valid User" do | |
let(:setup) {} | |
before { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Admin::ResidencesController do | |
let(:setup) {} | |
let(:user) { double('user') } | |
let(:residence_101) { build_stubbed(:residence) } | |
context "Valid User" do | |
before { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Admin::ResidencesController do | |
let(:user) { build_stubbed(:user) } | |
let(:get_action) { get :edit, id: residence_101.id } | |
let(:residence_101) { build_stubbed(:residence, id: 1) } | |
context "#valid_user" do | |
let(:setup) { | |
allow(Residence).to receive(:find).with(residence_101.id.to_s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Admin::ResidencesController do | |
let(:user) { build_stubbed(:user) } | |
context "#valid_user" do | |
describe '#new' do | |
before { | |
sign_in user |
OlderNewer