Skip to content

Instantly share code, notes, and snippets.

Kazuma kazumalab

Block or report user

Report or block kazumalab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kazumalab
kazumalab / hello.rb
Last active Jul 15, 2018
sample class
View hello.rb
class Hoge
def hello
"hello"
end
end
@kazumalab
kazumalab / sakurai.rb
Last active Jul 1, 2018
sakurai ungenius method
View sakurai.rb
class Sakurai
def ungenius?
true
end
def hoge
puts "hello"
end
end
View sample.rb
class Sakurai
def genius?
true
end
def hoge
puts "hello"
end
end
View sample.rb
class Sakurai
def genius?
true
end
end
View hoge.rb
class Sakurai
def genius?
true
end
end
@kazumalab
kazumalab / sample.rb
Last active Jun 26, 2018
pepro sample code!
View sample.rb
class Sample
end
@kazumalab
kazumalab / pepro.rb
Last active Jun 26, 2018
pepro powered by pepro platform.
View pepro.rb
def Hello
def say
puts "Hello World!"
puts "github"
puts "https://pepro.me"
end
end
# => hello = Hello.new
# => hello.say
@kazumalab
kazumalab / file1.txt
Last active Jun 26, 2018
the description for this gist
View file1.txt
String file contents
update!
@kazumalab
kazumalab / user_request_spec.rb
Last active Aug 20, 2017
ApplicationController.current_userをstubを使用した場合
View user_request_spec.rb
require 'rails_helper'
RSpec.describe "UserController", type: :request do
describe "#index" do
let(:user) { FactoryGirl.create(:user) }
context 'success' do
before do
allow_instance_of(ApplicationController).to receive(:current_user).and_return(user)
You can’t perform that action at this time.