I cant get rspec to work - ruby

I can't get rspec to work. I did the first level on codeschool, only i followed on my own computer, and it worked fine (had to change should with expect). But now it suddenly stopped doin it thing.
I'm not sure if I did anything to make this happen.
I know this probobly isn't sufficient to figure out whats wrong, but do anyone have a clue, or know where I can fix this.
I'm a novice in this so go easy.
Thanks.

Rspec is telling you that it can't find the specification file you're trying to run. Can you confirm that calc_spec.rb exists in the folder c:/King Kong/Desktop/the_odin_project/rspec?
(Please include code/output samples as text, not images, for ease of reference.)

Related

Update libraries after manual change

So I started working on my first open-source contribution in ruby. There I have the library I'm working on in the /lib/ folder. Now when I tried changing the code, my program (which uses the library) still uses the old code.
For example: Broke a function on purpose by deleting its end keyword (which should be causing an immediate crash), but it kept working perfectly after I did.
Another example was changing the code in such a way it should still work (mutating the output string) but it still returned the old string.
user~$ bin/ruby-hyphen -V "this is a test sentence"
this is a test sen-tence
Does anyone know if I have to tell the runtime to refresh it or something along those lines?
I found out why that happened. The file has a *.gemspec, which made it act as if it was a gem. To see the changes I needed to enter:
gem build *.gemspec
bundle exec rake install
Or, if you want to develop quicker: change everywhere you require it into a require_relative. That should also fix it. I hope this question helps someone in the future!

why can't i compile in visual studio?

All that shows up when I press Build is this, could someone explain why this is happening and how to fix it? I can't find this problem mentioned anywhere else.
I have the latest version, I haven't tried anything, because I honestly don't know what I can do to try to fix this. I can't find anyone else with the same problem. I have another project that can compile perfectly fine, and it was made in the exact way I made this one, so I can't figure out why this is happening.

Need to 'gatsby clean' with essentially every code change

So, our team are working on a Gatsby website, and it's working correctly for most of us.
One developer, however, needs to run gatsby clean on essentially every single code change.
Doesn't matter if it's an error, changing a text value or adding markup.
I realise this is a fairly vague question, but I'm not sure where to start troubleshooting this.
Has anyone encountered this before?

Mindmup installation procedure

How can I install mindmup as a standalone application using sinatra. Is there any proper documentation for that. I don't have experience with ruby. Please help.
The source code is available here
Note: this is a lazy hack, not the official way, etc...
Didn't work for me either. First it complained about $ which is just jquery, so i copied and pasted jquery into public/mm.js at the end. that solved that (not ideal, but who cares - technically, you should add another script dependency, etc...)
next, it tries to get external.js and external.css from static.mindmap.net which fails. All I did for this is simply look in mindmup.com with the google F12 thing, then find the external.css and external.js in the sources :) just dump these where the mm.js is.
It seems like the web.rb has the following
public_host = ENV['PUBLIC_HOST'] || 'http://static.mindmup.net'
so that's what was mucking everything up... change that to localhost:5000 and don't forget to get rid of the timestamp variable:
static_ts = '20150106142106'
turn into
static_ts = ''
Now it complains about portrait.png, some font awsome stuff etc... so we have to throw that in too.
and after all that, you still get an error, which really sucks...
so the code it's complaining in is actually the MM.main function! Which i assume is the primary function! It's some jquery thing where context is undefined... no clue how to go from here...

Error when trying to run Watir test through Fitnesse

I've recently been trying to run the following tutorial:
http://raveendran.wordpress.com/2010/10/20/watir-integration-with-fitnesse/
However I when I attempt to run the test in Fitnesse, it just sticks on "running test" without ever doing anything. I have tried to replace some of the Syntax, formatting etc but I just get the same result. Does anyone know how successfully implement this tutorial?
Many thanks for any help provided.
Matt
I remember doing that. It was tough to set up correctly. I can't remember much about it, but there was a fixture that helped me at Faucets. Good luck.

Resources